package com.njsf.controller.back;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

<<<<<<< HEAD
=======
import javax.servlet.http.HttpSession;

>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
@Controller
@RequestMapping("/back")
public class IndexController {

<<<<<<< HEAD
    @RequestMapping("/login")
=======
    @RequestMapping(value = {"/login","/"})
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
    public String loginView(){
        return "back/login";
    }

    @RequestMapping("/mainView")
    public String mainView(){
        return "back/index";
    }

    @RequestMapping("/welcomeView")
    public String welcomeView(){
        return "back/welcome";
    }

<<<<<<< HEAD
=======
    @RequestMapping("/logout")
    public String logOut(HttpSession httpSession){
        httpSession.invalidate();
        return "redirect:/back/login";
    }

>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
}
